var log4js = require("log4js");
var log4js_config = require("./log4j.config");

log4js.configure(log4js_config);


// console.log("log_start start!");

// var LogFile = log4js.getLogger('log_file');
// var DateFile = log4js.getLogger('log_date');
// DateFile.trace('lallal');
// LogFile.trace('This is a Log4js-Test');
// LogFile.debug('We Write Logs with log4js');
// LogFile.info('You can find logs-files in the log-dir');
// LogFile.warn('log-dir is a configuration-item in the log4js.json');
// LogFile.error('In This Test log-dir is : \'./logs/log_test/\'');

// console.log("log_start end!");


// 对应配置文件中的  category
var LogFile = log4js.getLogger('log_file');
var DateFile = log4js.getLogger('log_date');

//将需要导出的日志封装
var juselog = {LogFile,DateFile};
//暴露 供外部使用
module.exports = juselog;